public class PrintScore {
    public void printScore(double score)  {
        assert (0<score && score<=100):"异常信息：分数必须出现在1~100";
        System.out.println("该学生成绩是："+score);
        }
    public static void main1(String[] args) {
        double score = 110;
        PrintScore printScore = new PrintScore();
        try {
            printScore.printScore(score);
        } catch (AssertionError e) {
            System.out.println(e.getMessage());
        }
    }
}
